package com.enjoyor.health.HGPT.core.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author enjoyor
 * @since 2023-10-18
 */
@ApiModel(value = "News对象", description = "")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private String id;

    private String keyWord;

    @ApiModelProperty("资讯类型")
    private String type;

    @ApiModelProperty("资讯标题")
    private String title;

    @ApiModelProperty("资讯作者")
    private String author;

    @ApiModelProperty("资讯来源")
    private String source;

    @ApiModelProperty("资讯时间")
    private LocalDateTime time;

    @ApiModelProperty("资讯内容")
    private String content;

    @ApiModelProperty("视频地址-开头")
    private String urlStart;

    @ApiModelProperty("视频地址-结尾")
    private String urlEnd;

    @ApiModelProperty("点赞数")
    private Integer likes;

    @ApiModelProperty("摘要")
    private String newsAbstract;

    @ApiModelProperty("封面图片地址")
    private String newsCover;

    @ApiModelProperty("资讯时间")
    private LocalDateTime editTime;

    @ApiModelProperty("置顶")
    private String up;

    @ApiModelProperty("状态")
    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrlStart() {
        return urlStart;
    }

    public void setUrlStart(String urlStart) {
        this.urlStart = urlStart;
    }

    public String getUrlEnd() {
        return urlEnd;
    }

    public void setUrlEnd(String urlEnd) {
        this.urlEnd = urlEnd;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public String getNewsAbstract() {
        return newsAbstract;
    }

    public void setNewsAbstract(String newsAbstract) {
        this.newsAbstract = newsAbstract;
    }

    public String getNewsCover() {
        return newsCover;
    }

    public void setNewsCover(String newsCover) {
        this.newsCover = newsCover;
    }

    public LocalDateTime getEditTime() {
        return editTime;
    }

    public void setEditTime(LocalDateTime editTime) {
        this.editTime = editTime;
    }

    public String getUp() {
        return up;
    }

    public void setUp(String up) {
        this.up = up;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "News{" +
            "id = " + id +
            ", keyWord = " + keyWord +
            ", type = " + type +
            ", title = " + title +
            ", author = " + author +
            ", source = " + source +
            ", time = " + time +
            ", content = " + content +
            ", urlStart = " + urlStart +
            ", urlEnd = " + urlEnd +
            ", likes = " + likes +
            ", newsAbstract = " + newsAbstract +
            ", newsCover = " + newsCover +
        "}";
    }
}
